Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added scan name to calls returning CompletedScan #279

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

bglass-r7
Copy link
Contributor

Description

Added an attribute to the CompletedScan class to return scan_name. Updated the parse methods for dyntable and json to pull out the scan name found in the results.

Motivation and Context

With the recent change in Nexpose to assign scan names and sub site schedules, having the ability to filter and lookup scans based on names could prove beneficial.

How Has This Been Tested?

I cloned the current master branch, updated the scan.rb file, built a new gem and ran a test script. The change was rather small to add the attribute to a file.

Screenshots (if appropriate):

N/A

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have updated the documentation accordingly (if changes are required).
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sgreen-r7
Copy link
Contributor

thanks @bglass-r7 does this need to go out as a part of a specific release?

@bglass-r7
Copy link
Contributor Author

@sgreen-r7 No specific release. Can sneak it in there if need be. Was just asked how to get the scan name from the API and didn't see it. Plus looked like a very easy update.

@sgreen-r7 sgreen-r7 merged commit 13ba5d1 into rapid7:master Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants